package com.gzhu.knowledgeAdmin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gzhu.knowledgeAdmin.dao.TDxqmTMapper;
import com.gzhu.knowledgeAdmin.entity.TDxqmT;
import com.gzhu.knowledgeAdmin.service.TDxqmTService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

@Service
public class TDxqmTServiceImpl extends ServiceImpl<TDxqmTMapper, TDxqmT> implements TDxqmTService {

    // 如果你需要更多自定义的方法，可以在这里添加

    @Resource
    private TDxqmTMapper tDxqmTMapper;


    @Override
    public Integer addQM(TDxqmT tDxqmT) {
        Date now = new Date();
        tDxqmT.setFCjsj(now);
        return tDxqmTMapper.insertQM(tDxqmT);
    }

}
